package code.servlet;

import code.timer.GPSToBaiduTimer;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;

/**
 * Created by IntelliJ IDEA.
 * User: cheny
 * Date: 12-3-3
 * Time: 下午5:01
 */
public class AutoRunServlet extends HttpServlet {
    @Override
    public void init() throws ServletException {
       try{
            System.out.println("AutoRunServlet Is Init ....");
            new Thread(new GPSToBaiduTimer()).start();
       }  catch (Exception e){
         e.printStackTrace();
       }
    }
}
